package com.hoo.mapper.account;

import java.util.List;
import java.util.Map;

import com.hoo.entity.account.Users;
import com.hoo.form.account.UsersForm;


public interface AccountMapper extends SqlMapper {
	
	public List<Users> getAllUser();
	
	public Users getUserById(int id);
	
	public Users getUserByLoginName(String loginName);
	
	public Users getUserByRealName(String realName);
	
	public int insertUser(Users user);
	
	public int updateUser(Users user);
	
	public int deleteUserById(int id);
	
	
	/**
	 * 根据动态条件查询用户信息
	 * @param map
	 * @return
	 */
	public List<Users> getUsersByDyCon(Map<String, String> map);

	public int getUsersCount(UsersForm form);

	public List<Users> getUserlist(UsersForm form);
	
}
